﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace HtmlExtractor.Config
{
    internal class RuleBuildFactory
    {
        public static IPageItemConfig Create(XElement node)
        {
            if (node.Name == "Simple")
                return new Simple(node);
            else if (node.Name == "Group")
                return new Group(node);
            else
                return null;
        }
    }    
}
